Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODObject


IsEqualTo

The IsEqualTo method returns a Boolean value that indicates whether the specified object is equal to this object.

ODBoolean IsEqualTo (in ODObject object);
object
A reference to an object to compare to this object.
return value
kODTrue if the objects are the same, otherwise kODFalse.
DISCUSSION
You should call this method whenever you need to compare objects for equality. You should never use the equal or not equal operators (for example, the C++ == and != operators) to compare references of two objects.

SEE ALSO
"Testing objects for equality" on page 471 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help